package puppy.eval;

import java.io.IOException;
import java.util.HashSet;

import util.ranker.SuggestionsFromFile;

public class EvaluateQuerySuggestionsFileLauncher {

	/**
	 * @param args
	 */

	public static void main(String argsp[]) throws IOException {
		//String google_path= "/Users/sergioduarte/projects/data/results/query_suggestions_bing_aol/dmoz_nonadults_querysuggesitons.txt";
		String google_path="/Users/sergioduarte/projects/data/results/query_suggestions_bing_aol/ydir/ydir_suggestions.txt";
		//String evaluation_path = "/Users/sergioduarte/projects/data/results/aol_query_reformulations/all_long_click.txt";
		
		
		google_path="../data/query_suggestions_bing_aol/ydir/ydir_suggestions.txt";
		//google_path="/home/sergio/projects/learning_rank/query_suggestions/models/reconstructed.txt";
		
		
		
		google_path="/home/sergio/projects/workspace_puppy/data/gold_set/query_suggestions_google.txt";
		google_path="/home/sergio/projects/learning_rank/query_suggestions/models/rw_kl_features_optimal2.txt";
		google_path="/home/sergio/data/query_suggestions_bing.txt";
	//	google_path="/home/sergio/projects/learning_rank/query_suggestions/models/rw_kl_features_10_12txt_str_reconstructed";
		//google_path="/home/sergio/projects/learning_rank/query_suggestions/models/svm/rw_kl_features_10_12txt_str_";
		//google_path="/home/sergio/projects/learning_rank/query_suggestions/models/svm/output_sorted.txt";
		google_path="/home/sergio/projects/learning_rank/query_suggestions/models/ranklib/years_10_12.raw_features.txt";
		google_path= "/Users/sergioduarte/projects/data/results/query_suggestions_bing_aol/dmoz_nonadults_querysuggesitons.txt";
		google_path= "/home/sergio/data/results/query_suggestions_google/query_suggestions_google.txt";
		//google_path="/home/sergio/projects/learning_rank/query_suggestions/models/ranklib/rw_kl_features_10_12txt_str_FeaturesFilereconstructed";
		String evaluation_path="../data/gold_set/ydir_query_reformulations/all.txt";
		evaluation_path="../data/gold_set/y_reformulations/years_10_12.txt";
		evaluation_path = "../data/gold_set/aol_query_reformulations/tm_click1.txt"; //change this
		//String evaluation_path = "/home/sergio/projects/learning_rank/query_suggestions/models/rw_kl_features_optimal1.txt";
		String log_type="aol";
		HashSet<String> valid_ages= new HashSet<String>();
		valid_ages.add("ydir");
		valid_ages.add("kids");
		valid_ages.add("adults");
		valid_ages.add("kids-teens-mteens");
	//	valid_ages.add("teens");
		valid_ages.add("teens-mteens");
		valid_ages.add("mteens"); 
		boolean onlyClicks=false;
		int duration =30;
		boolean onlyManual=false;
		int rank_index=2;
		if(argsp.length<3){
			
		
		}else{
			google_path = argsp[1];
			evaluation_path = argsp[2];
			rank_index=Integer.valueOf(argsp[3]);
			
		}
		
		SuggestionsFromFile sugg = new SuggestionsFromFile(google_path, rank_index);
		String output_path="./test.txt";
		EvaluateSuggestions eval = 
			new EvaluateSuggestions(evaluation_path,log_type, valid_ages,onlyClicks,duration, onlyManual, output_path);
	
		eval.performEvaluation(sugg);
		

	}

}
